<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>第67个CSS页面</title>
    <style>
        ul {
            float: left;
            width:100%;
            padding: 0;
            margin: 0;
            list-style-type: none;
        }

        a {
            float: left;
            width: 7em;
            text-decoration: none;
            color: white;
            background-color: purple;
            padding: 0.2em 0.6em;
            border-right: 1px solid white;
        }
        a:hover {background-color: #ff3300;}
        li {display: inline;}
    </style>
</head>
<body>

<h4>创建水平菜单</h4>

<ul>
    <li><a href="#">Link one</a></li>
    <li><a href="#">Link two</a></li>
    <li><a href="#">Link three</a></li>
    <li><a href="#">Link four</a></li>
</ul>

</body>
</html>